package test;

import com.cynen.job.task.SalaryUtils;
import org.apache.commons.lang3.StringUtils;

public class Mytest {

    public static void main(String[] args) {
        String text = "贵阳  |  1年经验  |  大专  |  招2人  |  04-29发布 | 111";
        System.out.println(text.length());
        // String[] split = text.split("  \\|  ");
        System.out.println(text.indexOf("|"));
        System.out.println(text.lastIndexOf("|"));

        System.out.println(text.substring(0,text.indexOf("|")-2));

        System.out.println(text.substring(text.indexOf("发布")-5,text.indexOf("发布")));

    }
}
